<:!:/><!--
/**
 * @file c.search.html
 * @author Alejandro Dario Simi
 * @date $Date: 2013-05-24 23:14:00 +0000 (Fri, 24 May 2013) $
 *
 * $Id: c.search.html 66 2013-05-24 23:14:00Z daemonraco@gmail.com $
 * $URL: http://wcomix.googlecode.com/svn/tags/wcomix-1.0.0.2/themes/mdefault/templates/contents/c.search.html $
 */
--><::/><script type="text/javascript">
	function Search() {
		var type = $("#TYPE").val();
		var url = "?action=<:VAR:/>WC_ACTION_SEARCH<::/>&group=<:VAR:/>GROUP-ID<::/>&pattern=" + $("#PATTERN").val();

		if(type != "") {
			url += "&type=" + type;
		}

		document.location.href = url;
	}
</script>

<div class="ListViewSection">Search</div>
<div class="ListView">
	<div class="ListItem">
		<div>Pattern</div>
		<div><input id="PATTERN" value="<:VAR:/>search-pattern<::/>"/></div>
	</div>
	<div class="ListItem">
		<div>Type</div>
		<div><select id="TYPE">
			<option value="">All</option>
			<option value="CX"<:IF:var=only-type:value=CX:/> selected="selected"<::/>>Comics Only</option>
			<option value="TA"<:IF:var=only-type:value=TA:/> selected="selected"<::/>>Tags Only</option>
			<option value="CL"<:IF:var=only-type:value=CL:/> selected="selected"<::/>>Collections Only</option>
		</select></div>
	</div>
	<div class="ListItem">
		<div>&nbsp;</div>
		<div><input type="button" value="Search" onclick="Search();return false;"/></div>
	</div>
</div>

<:INCLUDE:/>/generics/list-view.html<::/>